package com.mmall.model;

import java.util.Date;
import java.util.Objects;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
public class SysRole {
    private String id;

    private String name;

    private String type;

    private String status;
    
    private String level;
    
    private String parentId;
    
    private String seq;

    private String remark;

    private String operator;

    private Date operateTime;

    private String operateIp;
    
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SysRole sysRole = (SysRole) o;
        return Objects.equals(id, sysRole.id);
    }

}